package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.BusClassifyEntity;
import com.j2eefast.bussiness.contract.entity.BusInstallsEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>选项设置</p>
 *
 * @author: summer
 * @date: 2021-06-01 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface BusClassifyMapper extends BaseMapper<BusClassifyEntity> {



    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);

    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<BusClassifyEntity> findPage(IPage<?> params,
//                                         @Param("sample_code") String sampleCode,
                                     // @Param("type") String type,
                                     @Param("sql_filter") String sql_filter);

    List<BusClassifyEntity> getInstallsList();

    /**
     * 获取机构数据
     * @param sql_filter
     * @return
     */
    List<BusClassifyEntity> getDeptList(
//            @Param("parentId") String parentId,
//            @Param("className") String className,
            @Param("sql_filter") String sql_filter);

    /**
     * 查询公司
     */
    BusClassifyEntity findCompById(@Param("id") Long id);


    public  List<BusClassifyEntity> listByMap(@Param("id") Long id);

    public  boolean removeByMap(@Param("id") Long id);

    public List<BusClassifyEntity> getPriceList(Long id);

}
